package com.legrand.message.controller;

import com.legrand.message.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiah
 * @date 2018/5/14 10:50
 */
@RestController
@RequestMapping("/api/message")
public class MessageController {
       @Autowired
       private MessageService messageService;

       @RequestMapping("/addMessage")
       public Long addMessage() {
              return messageService.addMessage();
       }
}
